#include "EventHandler.h"

EventHandler::EventHandler()
{

}

EventHandler::~EventHandler()
{

}

void EventHandler::HandleEvent(const SDL_Event& event)
{
	switch(event.type)
	{
	case SDL_KEYDOWN:
		OnKeyBoardEvent(event.key);
		break;
	case SDL_KEYUP:
		OnKeyBoardEvent(event.key);
		break;

	case SDL_MOUSEMOTION:
		OnMouseMotionEvent(event.motion);
		break;
	case SDL_MOUSEBUTTONDOWN:
		OnMouseEvent(event.button);
		break;
	case SDL_MOUSEBUTTONUP:
		OnMouseEvent(event.button);
		break;

//		case 
		//TODO: joystick movements and buttons 

	}
}
